import {Page, Property, TriggerEnum} from "csap-typescript-vue2/lib";

export class ApiDocPathForm {
    @Property("接口文档名称", [
        {trigger: TriggerEnum.blur, message: "请输入名称", required: true}
    ])
    name?: string;
    @Property("文档数据路径", [
        {trigger: TriggerEnum.blur, message: "请输入文档数据路径", required: true}
    ])
    url?: string;
    @Property("唯一标识", [
        {trigger: TriggerEnum.blur, message: "请输入唯一标识", required: true}
    ])
    pathKey?: string;
    @Property("文档ID")
    apidocId?: string;
    @Property("API路请求径", [
        {trigger: TriggerEnum.blur, message: "请输入API路请求径", required: true}
    ])
    apiUrl?: string;
    @Property("描述")
    descr?: string;
    @Property("首页富文本")
    md?: string;
}

export class ApiDocPathList extends ApiDocPathForm {
    @Property("主键")
    id: string;
    @Property("mock地址")
    mockUrl?: string;
}

export class ApiDocPathSearch extends Page {
    @Property("文档路径名称")
    name: string;
    @Property("文档ID")
    apidocId: string;

}
